//
//  BCHttpFileModel.m
//  Pod
//
//  Created by Basic on 2018/7/13.
//  Copyright © 2018年 zhihan. All rights reserved.
//

#import "BCHttpFileModel.h"
#import <BCFoundation/NSString+BCHelper.h>


@implementation BCHttpFileModel
#pragma mark - system


#pragma mark - getter
- (NSUInteger)fileLength {
    if (_fileLength == 0) {
        _fileLength = _fileData.length;
    }
    return _fileLength;
}
-(NSString *)uniqueFileName
{
    if(!_uniqueFileName && self.fileName.length>0) {
        _uniqueFileName = [NSString stringWithFormat:@"%@_%@",[NSString bc_timestamp], self.fileName];
    }
    return _uniqueFileName;
}
-(NSMutableDictionary *)userInfo {
    if (!_userInfo) {
        _userInfo = [[NSMutableDictionary alloc] init];
    }
    return _userInfo;
}
@end
